package cn.how2go.net.server.service;

import cn.how2go.common.vo.JT0200;
import cn.how2go.net.server.component.RabbitmqQueue;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2019/7/15.
 */
@Service
public class SenderService {
    @Autowired
    private AmqpTemplate rabbitTemplate;

    public void send(JT0200 sendMsg) {
        rabbitTemplate.convertAndSend(RabbitmqQueue.LOCATION_QUEUE, sendMsg);
    }
}
